home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-05 | 1.5 KB | 54 lines | [TEXT/MPWi] |
- # M A C S B U G I N S T A L L A T I O N S C R I P T
- #
- # Copyright Apple Computer, Inc. 1990 - All rights reserved.
- #
- #
- # This script is used to install either MacsBug 6.1 or 6.2b3 from the
- # E.T.O. #1 distribution compact disk into a folder called "MacsBug Folder"
- # on the destination hard disk.
- #
- # Options: None
- #
- # This script makes use of the following Shell variables:
- #
- # {CDVolume} - the name of the CD Distribution volume
- #
- # {SystemFolder} - the path to the folder containing the currently active System
- #
- # {DestVolume} - the name of the volume from which the Installer was launched
- #
- # {MacsBugOption} - a flag used to indicate which version of MacsBug to install
-
-
- If "{MacsBugOption}" == "1" ### install MacsBug 6.1
- set Source "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.1:"
- Else If "{MacsBugOption}" == "2" ### install MacsBug 6.2b3
- set Source "{CDVolume}Tools - Objects:MacsBug:MacsBug 6.2b3:"
- Else
- Exit 1
- End
-
- ### First, copy Macsbug into the System Folder
-
- if "`Exists -f "{SystemFolder}MacsBug"`"
- if "`Exists -f "{SystemFolder}MacsBug.Old"`"
- Delete -y "{SystemFolder}MacsBug.Old"
- End
-
- Rename "{SystemFolder}MacsBug" "{SystemFolder}MacsBug.Old"
- End
-
- Duplicate -y "{Source}MacsBug" "{SystemFolder}MacsBug"
-
- ### Now, copy the rest of the stuff
-
- if "`Exists -d "{DestVolume}MacsBug Folder"`"
- if "`Exists -d "{DestVolume}MacsBug Folder.Old"`"
- Delete -y "{DestVolume}MacsBug Folder.Old"
- End
-
- Rename "{DestVolume}MacsBug Folder" "{DestVolume}MacsBug Folder.Old"
- End
-
- Duplicate -y "{Source}" "{DestVolume}MacsBug Folder:"
-